import request from "@/utils/request";
// 商家列表
export function storeList(params) {
    return request({
        url: "channel/shop/store-list",
        method: "get",
        params,
    });
}
// 商户区域
export function getCity(params) {
    return request({
        url: "channel/shop/get-city",
        method: "get",
        params,
    });
}
// 商户基本信息 get 查看数据 post 提交数据
export function getStoreBasic(params) {
    return request({
        url: "channel/shop/store-basic",
        method: "get",
        params,
    });
}
export function postStoreBasic(data) {
    return request({
        url: "channel/shop/store-basic",
        method: "post",
        data,
    });
}
//营业信息 get 查看数据 post 提交数据
export function getStoreBusiness(params) {
    return request({
        url: "channel/shop/store-business",
        method: "get",
        params,
    });
}
export function postStoreBusiness(data) {
    return request({
        url: "channel/shop/store-business",
        method: "post",
        data,
    });
}
//资质认证 get 查看数据 post 提交数据
export function getStoreAuth(params) {
    return request({
        url: "channel/shop/store-auth",
        method: "get",
        params,
    });
}
export function posStoreAuth(data) {
    return request({
        url: "channel/shop/store-auth",
        method: "post",
        data,
    });
}
// 门店账号信息 get 查看数据 post 提交数据
export function getStoreAccount(params) {
    return request({
        url: "channel/shop/store-account",
        method: "get",
        params,
    });
}
export function posStoreAccount(data) {
    return request({
        url: "channel/shop/store-account",
        method: "post",
        data,
    });
}

//提现方式 get 查看数据 post 提交数据
export function getWithdrawal(params) {
    return request({
        url: "channel/shop/withdrawal",
        method: "get",
        params,
    });
}
export function postWithdrawal(data) {
    return request({
        url: "channel/shop/withdrawal",
        method: "post",
        data,
    });
}

// 自提地址 get 查看数据 post 提交数据
export function getSelfAddress(params) {
    return request({
        url: "channel/shop/self-address",
        method: "get",
        params,
    });
}
export function posSelfAddress(data) {
    return request({
        url: "channel/shop/self-address",
        method: "post",
        data,
    });
}
// channel/shop/store-category-list  item1.门店分组2门店区域3.门店标签5.店铺服务
export function storeCategoryList(params) {
    return request({
        url: "channel/shop/store-category-list",
        method: "get",
        params,
    });
}
//商户分类 get 查看信息 post 提交信息
export function storeCategory(data) {
    return request({
        url: "channel/shop/store-category",
        method: "post",
        data,
    });
}
//修改商户分类状态
export function modifyStoreCategory(data) {
    return request({
        url: "channel/shop/modify-store-category",
        method: "post",
        data,
    });
}

// 门店概况
export function shopSurvey(params) {
    return request({
        url: "channel/shop/shop-survey",
        method: "get",
        params,
    });
}
//修改店铺
export function modifyStore(data) {
    return request({
        url: "channel/shop/modify-store",
        method: "post",
        data,
    });
}
// 门店搜索所需分类
export function selectStoreCategory(params) {
    return request({
        url: "channel/shop/select-store-category",
        method: "get",
        params,
    });
}
//修改门店商品同步模式
export function changeGoodsModel(data) {
    return request({
        url: "channel/shop/change-goods-model",
        method: "post",
        data,
    });
}
//搜索Id
export function getUserInfo(data) {
    return request({
        url: "channel/shop/get-user-info",
        method: "post",
        data,
    });
}
//提现列表
export function shopWithdrawalList(params) {
    return request({
        url: "channel/shop/withdrawal-list",
        method: "get",
        params,
    });
}
//提现列表操作
export function modifyWithdrawal(data) {
    return request({
        url: "channel/shop/modify-withdrawal",
        method: "post",
        data,
    });
}
// 查找门店
export function selectStore(params) {
    return request({
        url: "channel/activity/select-store",
        method: "get",
        params,
    });
}
// 选择门店
export function postSelectStore(data) {
    return request({
        url: "channel/activity/select-store",
        method: "post",
        data,
    });
}
export function getMerchantUser(params) {
    return request({
        url: "channel/shop/get-merchant-user",
        method: "get",
        params,
    });
}
